home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-03-28 | 2.4 KB | 94 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="6"
- "COUNT"="5"
- "UIPATH"="Internet\Internet Explorer\Appearance"
- "NAME"="Appearance Options #2"
- "LANGUAGE"="VBScript"
- "VERSION"="1.20"
- "TEXT 1"="Show "Favorites" menu"
- "TEXT 2"="Use IntelliMenus for "Favorites" menu"
- "TEXT 3"="Show right-click HTML menu"
- "TEXT 4"="Enable "Theater Mode" (F11)"
- "TEXT 5"="Enable "Internet Options" menu"
- "DESCRIPTION 1"="Some appearance settings of Internet Explorer you might consider changing."
- "DESCRIPTION 2"="NOTE: Option #2 will only work with Windows 2000."
- "DESCRIPTION 3"="NOTE: Option #5 will also disable the "Internet" applet inside Control Panel."
- "AUTHOR"="Xteq Systems and Sebastien Maurice"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
-
-
- 'All DW
- sV1="HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoFavorites"
- sV2="HKCU\Software\Microsoft\Internet Explorer\Main\FavIntelliMenus"
- sV3="HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoBrowserContextMenu"
- sV4="HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoTheaterMode"
- sV5="HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoBrowserOptions"
-
-
-
- 'Called when the Plugin is started
- SUB Plugin_Initialize
- Call Rd(1,sV1)
-
- s=RegReadValue(sV2)
- if s="yes" or IsEmpty(s) then
- SetUIElement 2,true
- end if
-
- Call Rd(3,sV3)
- Call Rd(4,sV4)
- Call Rd(5,sV5)
- END SUB
-
- 'Called when the Plugin should validate the Data the user has entered
- SUB Plugin_CheckData(ElementIndex)
- END SUB
-
- 'Called when the Plugin should apply the changes
- SUB Plugin_Apply(ElementIndex,ElementSubIndex)
- Call Wrt(1,sV1)
-
- if GetUIElement(2)=true then
- Call RegWriteValue(sV2,"yes",1)
- else
- Call RegWriteValue(sV2,"no",1)
- end if
-
-
- Call Wrt(3,sV3)
- Call Wrt(4,sV4)
- Call Wrt(5,sV5)
- END SUB
-
- Sub Wrt(ITM,VAL)
- b=GetUIElement(ITM)
- if b=false then
- Call RegWriteValue(VAL,1,2)
- Call Restart()
- else
- s=RegReadValue(VAL)
- if IsEmpty(s)=false then
- Call RegDeleteValue(VAL)
- Call Restart()
- end if
- end if
- end sub
-
- Sub Rd(ITM,VAL)
- i=RegReadValue(VAL)
- if IsEmpty(i) then
- SetUIElement ITM,true
- else
- if i<>1 then
- SetUIElement ITM,true
- end if
- end if
- end sub
-
-
- 'Called when the Plugin is about to be removed from memory
- SUB Plugin_Terminate
- END SUB
-
-